package com.dyh.quickdemo.bizDemo.lbdAuto;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.function.Consumer;

/*
@Author=Joey Wheeler
@Date=2021/4/23 14:18
*/
@Service
@Slf4j
public class ThatServieWrap {

    @Autowired
    ThatServie thatServie;

    public void fun(){
        consumer.accept("dawdawd");
    }

    Consumer consumer = s->{
        log.info("s={}",s);
        thatServie.fun();
    };
}
